package com.itcast.googleplay.protocol;

import java.util.List;

import com.google.gson.Gson;
import com.google.gson.reflect.TypeToken;
import com.itcast.googleplay.domain.SubjectBean;

public class SubjectProtocol extends BaseProtocol<List<SubjectBean>>{
	@Override
	public List<SubjectBean> processData(String json) {
		Gson gson = new Gson();
		//List<SubjectInfo>   gson封装
		return gson.fromJson(json, new TypeToken<List<SubjectBean>>(){}.getType());
	}
}
